<style>

    .layui-form{
        text-align: center;
    }
</style>

<div class="main">
    <div id="form-view" class="search" style="margin: 20px 0px 40px 10px">
        <form class="layui-form" action="" id="add" style="text-align:center;">
            <div class="layui-input-block">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">告警名称：</label>
                        <div class="layui-input-inline">
                            <input type="text" lay-verify="required" name="alarmName" placeholder="请输入" class="layui-input">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-input-block" style="margin-top:1em">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">告警原因：</label>
                        <div class="layui-input-inline">
                            <textarea class="layui-textarea " name="alarmReason" lay-verify="required" placeholder="请输入" ></textarea>
                        </div>
                    </div>
                </div>
            </div>
            <div class="btn-box "  >
                <button type="button" class="layui-btn" lay-submit lay-filter="submit" >确认</button>
                <button type="button" class="layui-btn layui-btn-primary closeBox" id="closeBox">取消</button>
            </div>
            <div class="clearFloat"></div>
        </form>
    </div>
</div>